package kafka.devops;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by Nicky.Tang on 2022/2/9 2:15 下午
 *
 * @since 02.12.10
 */
public class MainParams {
    private String topic;
    private String regx;
    private String startTime;
    private String endTime;
    private String bootstrap;
    private int maxRow = 10;

    public MainParams() {
    }

    public static MainParams initMainParams(String[] args) {
        return JSONObject.parseObject(args[0], MainParams.class);
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getRegx() {
        return regx;
    }

    public void setRegx(String regx) {
        this.regx = regx;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getBootstrap() {
        return bootstrap;
    }

    public void setBootstrap(String bootstrap) {
        this.bootstrap = bootstrap;
    }

    public int getMaxRow() {
        return maxRow;
    }

    public void setMaxRow(int maxRow) {
        this.maxRow = maxRow;
    }
}
